package com.itheima.service.impl;

import com.itheima.dao.SetmealCGDao;
import com.itheima.service.SetmealCGSerivce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SetmealCGSerivceImpl implements SetmealCGSerivce {
    @Autowired
    private SetmealCGDao setmealCGDao;

    @Override
    public void deleteById(Integer setmealId) {
        setmealCGDao.deleteById(setmealId);
    }

    @Override
    public int selectById(Integer setmealId) {
        int i = setmealCGDao.selectById(setmealId);
        return i;
    }
}